package com.baizhi.service.impl;

import com.baizhi.dao.AdminDao;
import com.baizhi.entity.Admin;
import com.baizhi.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by 小荷~ on 2019/6/16.
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminDao dao;

    @Override
    public Admin selectOne(String userName, String passWord) {

        Admin admin = dao.selectOne(userName,passWord);

        return admin;

    }
}
